import type { Theme } from 'vitepress'
import { enhanceAppWithTabs } from 'vitepress-plugin-tabs/client'
import DefaultTheme from 'vitepress/theme'
import { h } from 'vue'
import ConfigProvider from './components/ConfigProvider.vue'
import './custom.scss'

export default {
  extends: DefaultTheme,
  enhanceApp({ app }) {
    enhanceAppWithTabs(app)
  },
  Layout: () => h(ConfigProvider, null, () => h(DefaultTheme.Layout)),
} satisfies Theme
